libmyc.so: math.o begin.o
	gcc -shared -o $@ $^
%.o:%.c
	gcc -c -fPIC $<
#math.o:math.c
#	gcc -c -fPIC  $<
#begin.o:begin.c
#	gcc -c -fPIC  $<
.PHONY:clean
clean:
	rm -rf *.o libmyc.so mylib.tgz mylib
.PHONY:output
output:
	mkdir -p mylib/include
	mkdir -p mylib/lib
	cp ./*.h mylib/include
	cp ./*.so mylib/lib
	tar -czf mylib.tgz mylib
